import {INIT_DATA} from './mutations-type'
export default {
    state:{
        list:[]
    },
    getters:{
        //默认收货地址
        defaultPath(state){
            return state.list.filter(v=>{
                return v.isDefault == true
            })
        }
    },
    mutations:{
        [INIT_DATA](state,pathArr){
            state.list = []
            if(pathArr){
                state.list = pathArr
            }
            
        }
    },
    actions:{

    }
}